#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "regex.h"

int main(int argc,char **argv)
{
  regex_t rex;
  if (regcomp(&rex, "^[0-5]", REG_EXTENDED | REG_NOSUB) != 0) {
	printf("cannot compile");
  }

  printf("match: %d\n", regexec(&rex, "256", 0, NULL, 0));
  
  return 0;
}
